package com.itheima.demo_junit;

import org.junit.Before;
import org.junit.Test;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/20 14:01
 */
public class Demo_001 {

    @Test
    public void method() {
        System.out.println("method方法!");
    }

    //@After
    public void eat() {
        System.out.println("eat方法!");
    }

    @Before
    public void math() {
        //System.out.println(2/0);
        int a = 10;
        int b = 20;
        System.out.println(a + b);
    }
}
